package com.songlanyun.modules.sensitivelog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

/**
 * 系统敏感日志记录
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2020-12-17 17:51:22
 */
@Data
@TableName("sys_sensitive_log")
public class SensitiveLog extends RootEntity<Long, SensitiveLog> implements Serializable {
    private static final long serialVersionUID = 1L;


    public SensitiveLog() {
    }

    public SensitiveLog(String name, String remark) {
        this.name = name;
        this.remark = remark;
    }

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 操作人信息
     */
    private String name;
    /**
     * 操作日志
     */
    private String remark;
    /**
     * 操作时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @Override
    public Long getIdentity() {
        return id;
    }
}
